#include "SettingsMenuState.h"
#include "Menu.h"
#include "MainMenuState.h"
#include "InputGameState.h"
#include "BackgroundImage.h"

SettingsMenuState::SettingsMenuState()
    : MenuState("Settings Menu")
{
}

SettingsMenuState::~SettingsMenuState()
{
}

void SettingsMenuState::addMenuLines()
{
    addLine("1. Server IP");
    addLine("2. Player Name");
    addLine("ESC. Back");
}

GameState* SettingsMenuState::performMenuAction1()
{
    return goToNextState(new InputGameState(Configuration::SERVER_IP, "Server IP"));
}

GameState* SettingsMenuState::performMenuAction2()
{
    return goToNextState(new InputGameState(Configuration::CLIENT_NAME, "Player Name"));
}

GameState* SettingsMenuState::performMenuActionEscape()
{
    return goToNextState(new MainMenuState());
}
